import { request } from '../utils'

// 获取课程
const getClass = (requsetData, cb) => {
  request({
    url: "api/ShopBranchWeb/GetStoreList",
    params: requsetData
  }).then(res => {
    if (res.data.Success) {
      cb && cb(res.data.Data)
    } else {
      console.log("获取课程失败...")
    }
  })
}

// 获取课程
const getClassList = (requsetData, cb) => {
  request({
    url: "api/product/GetVirtualProductPersons",
    params: requsetData,
  }).then((res) => {
    if (res.data.Success) {
      cb && cb(res.data.Data)
    } else {
      console.log("获取课程列表失败...")
    }
  })
}

export { getClass, getClassList }